<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport( 'joomla.application.component.model' );
JTable::addIncludePath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_ecommerce'.DS.'tables');	

class EcommerceModelRegister extends JModel
{

    function __construct()
	{
		global $mainframe;
		parent::__construct();
	}  
    function getArticle(){ 
        $query = "SELECT introtext FROM #__content WHERE id = 12 ";
        $this->_db->setQuery($query);
        $article = $this->_db->loadResult();
        
        return $article;     
    }
	
}
?>